package com.rustic.server.enums;

import cn.xy.commons.validator.VerifiedEnum;
import lombok.Getter;

/**
 * 证件类型枚举
 */

@Getter
public enum CardType implements VerifiedEnum {

    /**
     * 身份证
     */
    ID_CARD(1, "身份证"),

    /**
     * 港澳台居民居住证
     */
    HK_TW_MACAO(2, "港澳台居民居住证"),

    /**
     * 护照
     */
    PASSPORT(3, "护照"),

    /**
     * 其他
     */
    OTHER(4, "其他");

    private final int value;

    private final String name;

    CardType(int value, String name) {
        this.value = value;
        this.name = name;
    }

    @Override
    public Object getVerifiedValue() {
        return this.value;
    }
}
